package io.e2x.testground.fruitstore.dal.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.math.BigInteger;

/**
 * 店铺
 * @author: sukimiya
 * @date: 2020/5/27 16:02
 */
@Table("STORE")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Store {

    @Id
    private long id;
    /**
     * 店铺名称
     */
    private String name;
    /**
     * 店铺地址
     */
    private String address;
    /**
     * 店铺电话
     */
    private String phone;
    /**
     * 店铺描述
     */
    private String description;

    public Store(String n, String a, String p, String d) {
        this.name = n;
        this.address = a;
        this.phone = p;
        this.description = d;
    }
}
